import Vue from 'vue'
import Router from 'vue-router'

import Login from '@/view/Login'

import UserCenter from '@/view/UserCenter'
import MemoryMonitor from '@/view/MemoryMonitor'
import AccountsList from '@/view/AccountsList'
import FavoriteList from '@/view/FavoriteList'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/UserCenter',
      name: 'UserCenter',
      component: UserCenter,
      children: [
        {
          path: "AccountsList",
          component: AccountsList
        },
        {
          path: "FavoriteList",
          component: FavoriteList
        }
      ]
    },
    {
      path: '/MemoryMonitor',
      name: 'MemoryMonitor',
      component: MemoryMonitor
    }
  ]
})
